﻿<%@ Page Title="" Language="C#" MasterPageFile="~/main.master" AutoEventWireup="true" CodeFile="get.aspx.cs" Inherits="get" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentHead" Runat="Server">

<link href="css/index.css" rel="stylesheet" type="text/css" />

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Content" Runat="Server">
<div style="width:500px; height:600px">
      <div style="MARGIN:0px auto; TEXT-ALIGN: left; height:24px">排序方式： 
      <asp:Button  
            style="BORDER-RIGHT: seagreen 1px solid; BORDER-TOP: seagreen 1px solid; FONT-WEIGHT: normal; FONT-SIZE: 12px; BORDER-LEFT: seagreen 1px solid; WIDTH: 57px; COLOR: black; BORDER-BOTTOM: seagreen 1px solid; HEIGHT: 16px;height:20px"  
            runat="server" ID="orderByTime" CssClass="anniu" Text="时间↑" onclick="orderByTime_Click" 
            />
      </div>

<center>
    <table  class="tbInfo" width="760px" style="text-align:center">
    <asp:Repeater ID="rpGet" EnableViewState="true" runat="server">
        <ItemTemplate>
                                
            <tr onmouseover="changeColor(this)" onmouseout="changeBCColor(this)" style="background-color:#f5fafa; height:40px;"> 
            <td><%#Eval("GoodsName")%></td>
            <td><a style="color:#FF0aaa" href='detail.aspx?id=<%#Eval("LId") %>'><%#Eval("Feature") %></a></td>                   
            <td width="80px"><%#Eval("Time","{0:yyyy-MM-dd}") %></td>
            <td><image height="120px" width="120px" src='imgpublish/<%#Eval("Image") %>'></image></td>
            </tr>     
            <tr><td colspan="5" height="2px"></td></tr>                   
        </ItemTemplate>
        <AlternatingItemTemplate>
                                
            <tr onmouseover="changeColor(this)" onmouseout="changeBCColor(this)" style="background-color:#fff; height:40px;"> 
            <td><%#Eval("GoodsName")%></td>
            <td><a style="color:#FF0aaa" href='detail.aspx?id=<%#Eval("LId") %>'><%#Eval("Feature") %></a></td>                   
            <td width="80px"><%#Eval("Time","{0:yyyy-MM-dd}") %></td>
            <td><image height="120px" width="120px" src='imgpublish/<%#Eval("Image") %>'></image></td>
            </tr>  
            <tr><td colspan="5" height="2px"></td></tr> 
        </AlternatingItemTemplate>
    </asp:Repeater>
    </table>
    </center>
</div>
    <div id="divPage">
  
       
      第 <asp:Label ID="pageNum" runat="server" Text="Label"></asp:Label>
&nbsp;页   
      共<asp:Label ID="pageCount" runat="server" Text="Label"></asp:Label>
&nbsp;页>   
  
        <asp:Button ID="btnpre" runat="server" CssClass="anniu" Text="上一页" onclick="btnpre_Click" 
            />
&nbsp;
       <asp:Button ID="btnnext" runat="server" CssClass="anniu" Text="下一页" onclick="btnnext_Click" 
            />
       <asp:TextBox ID="txtjump" runat="server" Width="59px"></asp:TextBox>
       <asp:Button ID="btnjump" runat="server" CssClass="anniu" 
            Text="跳转" ValidationGroup="group1" Width="54px" 
          onclick="btnjump_Click" />
       <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
          ErrorMessage="*" ValidationGroup="group1" ControlToValidate="txtjump" ForeColor="Red"></asp:RequiredFieldValidator>
      <asp:CompareValidator ID="CompareValidator1" runat="server" 
          ValidationGroup="group1"  ErrorMessage="*" ControlToValidate="txtjump" 
          ForeColor="Red" Operator="DataTypeCheck" Type="Integer"></asp:CompareValidator>
  </div>

</asp:Content>

